Skip to content

fix(skills): validate raw portable fields and reject unknown nested target keys - #205

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
fix/pr185-skills-findings
Sep 1, 2026
Merged

fix(skills): validate raw portable fields and reject unknown nested target keys#205
ScriptedAlchemy merged 2 commits into
mainfrom
fix/pr185-skills-findings

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

Fixes the two unaddressed Codex post-merge findings on #185:

  • P2 (config/validate.ts:845) — portable skill fields were sanitized before validation, so invalid optional values (e.g. compatibility: false) were silently cleaned and survived to build. The pinned Agent Skills frontmatter validation now runs on the raw authored values first; diagnostic codes (AB4002/AB4003/AB4007) unchanged.
  • P2 (skills/parse-ir.ts:146) — unknown nested keys under targets.codex (and the same gap under targets.claude / targets.cursor) were silently dropped. All three host targets now emit the existing AB3006 unknown-field diagnostic for unrecognized nested keys, including codex interface, policy, dependencies, and dependencies.tools[n] entries. Allowlists were cross-checked against every key (both spellings) the parser consumes, so no valid key regresses.

Coordination: rebased over #191 (model-digest canonicalization); no overlap with its changes.

Tests

Two regression tests (raw-portable validation in normalization.test.ts, nested unknown-key rejection across all targets in skill-ir.test.ts), both verified to fail without the src fix. Scoped unit tests (45 passed), root tsc --noEmit, and rslint green post-rebase.

…arget keys

Post-merge review findings from #185: run the pinned Agent Skills
frontmatter validation on the authored values before Skill IR
sanitization so invalid optional fields fail with AB4007-family
diagnostics instead of surviving to build, and report AB3006 unknown-field
diagnostics for unrecognized keys nested under targets.claude,
targets.cursor, and targets.codex (including codex interface, policy,
dependencies, and tool entries) instead of silently dropping typos.
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e991d4b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agent-bundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T21:02:11.492545Z a709096 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Sep 1, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@205
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/create-agent-bundle@205
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/runtime@205

commit: e991d4b

@ScriptedAlchemy
ScriptedAlchemy merged commit 079a77d into main Sep 1, 2026
10 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the fix/pr185-skills-findings branch September 3, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant